home *** CD-ROM | disk | FTP | other *** search
/ Programming in Microsoft Windows with C# / Programacion en Microsoft Windows con C#.iso / Original Code / Edit List and Spin / NotepadCloneNoMenu / NotepadCloneNoMenu.cs next >
Encoding:
Text File  |  2001-01-15  |  814 b   |  29 lines

  1. //-------------------------------------------------
  2. // NotepadCloneNoMenu.cs ⌐ 2001 by Charles Petzold
  3. //-------------------------------------------------
  4. using System;
  5. using System.Drawing;
  6. using System.Windows.Forms;
  7.  
  8. class NotepadCloneNoMenu: Form
  9. {
  10.      protected TextBox txtbox;
  11.  
  12.      public static void Main()
  13.      {
  14.           Application.Run(new NotepadCloneNoMenu());
  15.      }
  16.      public NotepadCloneNoMenu()
  17.      {
  18.           Text = "Notepad Clone No Menu";
  19.  
  20.           txtbox             = new TextBox();
  21.           txtbox.Parent      = this;
  22.           txtbox.Dock        = DockStyle.Fill;
  23.           txtbox.BorderStyle = BorderStyle.None;
  24.           txtbox.Multiline   = true;
  25.           txtbox.ScrollBars  = ScrollBars.Both;
  26.           txtbox.AcceptsTab  = true;
  27.      }
  28. }          
  29.